﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/Main.Master" AutoEventWireup="true" CodeBehind="SystemMenu.aspx.cs" Inherits="AUV5.Web.Manage.SystemMenu" %>

<%@ Import Namespace="AUV5.BLL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>
        添加
    </h3>
     <fieldset>
        <p>
            名称：<asp:TextBox ID="txtMenuName" runat="server" />
            页面路径：<asp:TextBox ID="txtPageUrl" Width="250px" runat="server" />
        </p>
        <p>
            父菜单：<asp:DropDownList ID="ddlpMenu" runat="server">
            </asp:DropDownList>
            <asp:Button ID="btnSubmit" Text="添加" runat="server" OnClick="btnSubmit_Click" />
            <asp:Label ID="lbMessage" Text="" class="error" runat="server" />
        </p>
    </fieldset>
    <h3>列表</h3>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td>
                菜单名称
            </td>
            <td>
                父菜单
            </td>
            <td>
                路径
            </td>
            <td>
                添加时间
            </td>
            <td align="center">
                管理
            </td>
        </tr>
        <asp:Repeater ID="repMenu" runat="server">
            <ItemTemplate>
                <tr>
                    <td>
                        <%# (Container.DataItem as AUV5.Model.Menu).MenuName%>
                    </td>
                    <td>
                        <%#MenuBLL.Instance.GetParentMenu((Container.DataItem as AUV5.Model.Menu).MenuID)%>
                    </td>
                    <td>
                        <%# (Container.DataItem as AUV5.Model.Menu).PageUrl%>
                    </td>
                    <td>
                        <%# (Container.DataItem as AUV5.Model.Menu).CreateDate.ToString("yyyy/MM/dd HH:mm")%>
                    </td>
                    <td class="action">
                        <a href="/Manage/SystemMenu.aspx?menuID=<%# (Container.DataItem as AUV5.Model.Menu).MenuID%>" class="edit">Edit</a><a href="#" class="delete">Delete</a>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
</asp:Content>
